package com.lagou.session;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MappedStatement;

import java.util.List;

/**
 * 执行器
 */
public interface Executor {

    public <T> List<T> query(Configuration configuration, MappedStatement mappedStatement, Object...params) throws Exception;

    public int update(Configuration configuration, MappedStatement mappedStatement, Object...params) throws Exception;

    public void close();
}
